package com.example.prison.service;

import com.example.prison.entity.DepartmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【department_info】的数据库操作Service
* @createDate 2023-05-26 14:36:03
*/
public interface DepartmentInfoService extends IService<DepartmentInfo> {

    PageInfo<DepartmentInfo> get(int pageNumber, int pageSize);

    int add(DepartmentInfo department);

    void delete(Integer[] ids);

    int update(DepartmentInfo department, Integer id);

    DepartmentInfo getById(Integer id);

    PageInfo<DepartmentInfo> getByName(int pageNumber, int pageSize, String name);

    DepartmentInfo getOneByName(String name);

}
